package com.perceptivesoftware.licensing.client.dialogs.useradmin;

import com.extjs.gxt.ui.client.Style.VerticalAlignment;
import com.extjs.gxt.ui.client.widget.Composite;
import com.extjs.gxt.ui.client.widget.LayoutContainer;
import com.extjs.gxt.ui.client.widget.form.LabelField;
import com.extjs.gxt.ui.client.widget.layout.TableData;
import com.extjs.gxt.ui.client.widget.layout.TableLayout;
import com.google.gwt.user.client.ui.HTML;

public class BreadCrumb extends Composite
{
	LayoutContainer bclc = new LayoutContainer();

	BreadCrumb(final SecurityManagerNavModel anm)
	{
		initComponent(bclc);
		bclc.setLayout(new TableLayout(2));
		final HTML iconHTML = new HTML("&nbsp;");
		iconHTML.setHeight("100%");
		iconHTML.setStyleName(anm.getIconStyleName());
		final TableData iconTableData = new TableData("20", "16");
		iconTableData.setVerticalAlign(VerticalAlignment.MIDDLE);
		bclc.add(iconHTML, iconTableData);
		bclc.add(new LabelField(anm.getName()), new TableData());
	}
}